

import java.util.Scanner;
public class text02 {
	public static void main(String[] args) {
		 Scanner in = new Scanner(System.in);
		 String str = "";
		 while(in.hasNextInt()){
			 int n= in.nextInt();
			 StringBuilder stringBuilder = new StringBuilder();
			 for(int i=0;i<n;i++){
				 	stringBuilder.append(i);
			 }
			 int x= in.nextInt();
			 int y= in.nextInt();
			 String a1=stringBuilder.substring(x,y);
             System.out.println(a1);
		 }
	}
}
